package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 近5年增长趋势表
 *
 * @author chenzh
 * @since 2023-02-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_bigscreen_fiveyear_gt")
@Schema(name = "EduBigscreenFiveyearGt", title = "近5年增长趋势表", description = "近5年增长趋势表实体类")
public class EduBigscreenFiveyearGt extends Model<EduBigscreenFiveyearGt> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "fiveyearGtId", title = "近5年增长趋势ID")
    @TableId(value = "fiveyear_gt_id", type = IdType.ASSIGN_UUID)
    private String fiveyearGtId;

    @Schema(name = "year", title = "招生年度")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "areaCode", title = "所属行政区划")
    @TableField(value = "area_code")
    private String areaCode;

    @Schema(name = "schoolId", title = "学校id")
    @TableField(value = "school_id")
    private String schoolId;

    @Schema(name = "schoolName", title = "学校名称")
    @TableField(value = "school_name")
    private String schoolName;

    @Schema(name = "schoolCategory", title = "学校类别")
    @TableField(value = "school_category")
    private String schoolCategory;

    @Schema(name = "schoolNature", title = "学校性质")
    @TableField(value = "school_nature")
    private String schoolNature;

    @Schema(name = "actNum", title = "实际人数")
    @TableField(value = "Act_num")
    private Integer actNum;

    @Schema(name = "plaNum", title = "计划人数")
    @TableField(value = "Pla_num")
    private Integer plaNum;

    @Schema(name = "del", title = "0,未删除,1,已删除")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Override
    public Serializable pkVal() {
        return this.fiveyearGtId;
    }
}
